package me.ilich.piet.interpreter.commands;

import me.ilich.piet.interpreter.Stack;

public class PopCommand implements Command {

	@Override
	public void onExecute(Stack.Context context) {
		final int size = context.getStackState().getData().size(); 
		if(size>0){
			context.getStackState().getData().remove(size-1);
		}
	}

}
